#include "junix.h"
#include <ext/rb_tree>

using namespace std;

struct A {
	A(int v):n(v){ }
	int n;
};

struct KeyOfValue {
	std::size_t operator() (const A& a) const
   	{ return a.n; }
};

struct Compare {
	bool operator() (const A& lhs, const A& rhs) const 
	{ return lhs.n<rhs.n; }
};

int main(int argc, char **argv)
{
	typedef __gnu_cxx::rb_tree<A,int,KeyOfValue,Compare> RBTREE;
	RBTREE tree;
	tree._M_insert_unique(A(0));
}
